<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue 示例</title>
    <!-- 引入 Vue -->
    <script src="./items.json"></script>
</head>
<body>
    <div id="app">
        <p>{{ message }}</p>
        <button @click="">点击改变消息</button>
    </div>

    <script>
        // 创建一个新的 Vue 实例
         Vue({
            el: '#app',
            data: {
                message: 'Hello, Vue!'
            },
            methods: {
                changeMessage() {
                    this.message = '消息已更改！';
                }
            }
        });
    </script>
</body>
</html>